import { POST } from "../../services/request";

const Cart = {
    CartAdd(data = {})
    {
        return POST({
            url:'/product/cart/add',
            params:data
        });
    },
    CartIndex(data = {})
    {
        return POST({
            url:'/product/cart/index',
            params:data
        });
    },
    UpdateProductNumber(data = {})
    {
        return POST({
            url:'/product/cart/update',
            params:data
        });
    },
    CartDel(data = {})
    {
        return POST({
            url:'/product/cart/del',
            params:data
        });
    },
    CartInfo(data = {})
    {
        return POST({
            url:'/product/cart/info',
            params:data
        });
    },
    AddressDefault(data = {})
    {
        return POST({
            url:'/product/cart/default',
            params:data
        });
    }
}

export default Cart;